Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
Error "NodeAlreadySaved" al usar cambios en la página de publicación de djangocms

Encuentra un error al usar cambios en la página de publicación de djangocms.

cuando ejecuté tail -f /var/log/apache2/error.log , devolvió:

 treebeard.exceptions.NodeAlreadySaved: Attempted to add a tree node that is already in the database, referer: http://47.95.254.172/?edit

Y cuando permití settings.py DEBUG= True y hice clic en el botón 'Publicar cambios en la página':

 NodeAlreadySaved at /admin/cms/page/1/en/publish/ Attempted to add a tree node that is already in the database Request Method: POST Request URL: http://47.95.254.172/admin/cms/page/1/en/publish/ Django Version: 3.1.7 Exception Type: NodeAlreadySaved Exception Value: Attempted to add a tree node that is already in the database Exception Location: /root/env1/lib/python3.8/site-packages/treebeard/mp_tree.py, line 326, in process Python Executable: /root/env1//bin/python Python Version: 3.8.5

python manage.py cms fix-tree pero no funcionó. ¡Mientras que la verificación de python manage.py cms check devolvió 10 verificaciones exitosas! .

Implementé el proyecto djangocms con:

apache2.4.41

mod-wsgi 4.8.0

Django 3.1.7

django-cms 3.8.0

La versión de python en venv es 3.8.5, y python3.8.5 compiló mod-wsgi en venv.

¡Gracias por la ayuda!

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

También puede modificar el archivo requirements.txt para reflejar una versión diferente django-treebeard que no sea 4.5.1 :

 django-treebeard>=4.0,!=4.5.1

Entonces puedes ejecutar:

 pip install -r requirements.txt
over 4 years ago · Santiago Trujillo Report

0

Degradar a la versión django-treebeard por debajo de 4.5.1, por ejemplo, 4.4. La versión 4.5.1 parece ser incompatible.

 pip install django-treebeard==4.4
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!